package com.hdu.context;

public class FullLinkContextHolder {

    private static final ThreadLocal<FullLinkContext> FULL_LINK_CONTEXT = new ThreadLocal<>();


    public static boolean isFullLinkStress() {
        return FULL_LINK_CONTEXT.get() != null;
    }

    public static FullLinkContext getFullLinkContext() {
        return FULL_LINK_CONTEXT.get();
    }

    public static void markFullLinkStress(FullLinkContext fullLinkContext) {
        FULL_LINK_CONTEXT.set(fullLinkContext);
    }


    public static void clear() {
        FULL_LINK_CONTEXT.remove();
    }


}
